package com.qiangou.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.entity.Type_Tags;
import com.qiangou.service.CreditService;

@Controller("IndexController")
public class IndexController {
	@Resource(name="creditService")
	private CreditService creditService;
	
	@RequestMapping({ "/index", "/" })
	public String index(Model model) {
		List<Type_Tags> tt=creditService.getType_Tags();
		model.addAttribute("tt",tt);
		return "index";
	}
}